﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Domain.MonitorDomain;

namespace Zocono.WCS.Application.AppEquipmentManage
{
   public class MonitorApp
    {

       
        private readonly IMonitorConfigInfoService _MonitorConfigInfoService;


        public MonitorApp(IMonitorConfigInfoService MonitorConfigInfoService)
        {

            _MonitorConfigInfoService = MonitorConfigInfoService;
        }
        public async Task<List<MonitorConfigInfo>> GetMonitorConfigInfoByFloorAsync(string floor)
        {
            return await _MonitorConfigInfoService.GetMonitorConfigInfoByFloorAsync(floor);
        }

        public async Task<bool> UpdateMonitorConfigInfoByLayerAsync(string layer, string json)
        {
            return await _MonitorConfigInfoService.UpdateMonitorConfigInfoByLayerAsync(layer, json);
        }
    }
}
